package com.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.domain.User;

public interface IUserDao {
	@Select("select * from user")
	List<User> findAll();
	
	@Select("select * from user where id=#{userId}")
	User findById(Integer userId);
	
	@Update("update user set username=#{username},password=#{password}")
	void updateUser(User user);
	
}
